package com.sunbim.rsrv.vo.storage;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("storage")
public class StorageVo {
    private Integer id;

    @ApiModelProperty("所属用户id")
    @TableField("user_id")
    @JsonProperty("user_id")
    private Integer userId;

    @ApiModelProperty("所属文物id")
    @TableField("relics_id")
    @JsonProperty("relics_id")
    private Integer relicsId;

    @ApiModelProperty("文件名称")
    @TableField("storage_name")
    @JsonProperty("name")
    private String storageName;

    @ApiModelProperty("文件url")
    @TableField("storage_url")
    @JsonProperty("url")
    private String storageUrl;

    @ApiModelProperty("类型")
    @TableField("storage_type")
    @JsonProperty("type")
    private String storageType;

    @ApiModelProperty("附属描述")
    @TableField("storage_desc")
    @JsonProperty("desc")
    private String storageDesc;

    @JsonProperty("create_time")
    private LocalDateTime createTime;

    @JsonProperty("update_time")
    private LocalDateTime updateTime;
}
